package com.lukebang.constant;

/**
 * 
 * CurtainInstallCaseType 上午10:47:17
 * 
 * Copyright zhaocj Inc. All rights reserved.
 * Love ME Like Justin Bieber.
 */
public enum CurtainInstallCaseType {
	SeparateInstall("布纱不同位置安装", 1), UniformInstall("布纱相同位置安装", 2);
	// 成员变量
	private String name;
	private int index;

	// 构造方法
	private CurtainInstallCaseType(String name, int index) {
		this.name = name;
		this.index = index;
	}

	// 普通方法
	public static String getName(int index) {
		for (CurtainInstallCaseType c : CurtainInstallCaseType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

}
